<?php include dirname(__FILE__).'/common/header.php'; ?>

<?php include dirname(__FILE__).'/common/menu.php'; ?>

var attr = {};
attr.ctrlName = '<?php echo $ctrlName; ?>';
attr.card_type = <?php echo $honda_card_type; ?>
/*
| -------------------------------------------------------------------
|  List Grid
| -------------------------------------------------------------------
*/
list.grid = new ZM.GridPanel({
    url: list.baseUrl + attr.ctrlName+'/getCardList',
    columns:[
        {header:'顾客ID',dataIndex:'customer_id',filter:{}},
        {header:'openid',dataIndex:'openid',width:150,filter:{}},
        {header:'卡券号',dataIndex:'card_number',width:200,filter:{}},
        {header:'状态',dataIndex:'card_status',renderer:ZM.status,filter:{xtype:'combofield',options:[['','全部'],['0','未激活'],[1,'激活']]}},
        {header:'类别',dataIndex:'card_type',width:150,renderer:function(val) {
            return ZM.id2name(val,attr.card_type);
        },filter:{
            xtype:'combofield',
            options:[['','全部']].concat(attr.card_type)
        }},
        {header:'获取时间',dataIndex:'card_time_create',width:140,filter:{xtype:'daterangefield'}},
        {header:'激活时间',dataIndex:'card_time_active',width:140,filter:{xtype:'daterangefield'}}
    ]
});
/*
| -------------------------------------------------------------------
|  List Grid Action
| -------------------------------------------------------------------
*/


<?php include dirname(__FILE__).'/common/layout.php'; ?>
list.grid.store.load();
<?php include dirname(__FILE__).'/common/footer.php'; ?>